package com.reggie.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//实体类父类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasePojo {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;//id主键
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long createUser;//创建人
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long updateUser;//修改人
}
